<template>
	<div>
		<h2>我是Person组件</h2>
		<h3>我获得到了Count组件中的和：{{sum}}</h3>
		<h3>{{msg}}</h3>
		<h3>{{school}}</h3>
	</div>
</template>

<script>
	import {mapState} from 'vuex'

	export default {
		name:'Person',
		computed:{
			...mapState(['msg','school','sum'])
		}
	}
</script>